package linkedlist;

public class DoubleHeroNodeLinkedListDemo {
    public static void main(String[] args) {
        DoubleHeroNode node1=new DoubleHeroNode(1,"松江","及时雨");
        DoubleHeroNode node2=new DoubleHeroNode(2,"李俊毅","玉麒麟");
        DoubleHeroNode node3=new DoubleHeroNode(3,"吴用","智多星");

        DoubleHeroNodeLinkedList doubleHeroNodeLinkedList=new DoubleHeroNodeLinkedList();
        doubleHeroNodeLinkedList.add(node1);
        doubleHeroNodeLinkedList.add(node2);
        doubleHeroNodeLinkedList.add(node3);

        doubleHeroNodeLinkedList.list();

        System.out.println("修改后");
        DoubleHeroNode node4=new DoubleHeroNode(3,"吴","智多星");
        doubleHeroNodeLinkedList.update(node4);
        doubleHeroNodeLinkedList.list();
        //删除后
        System.out.println("删除后");
        doubleHeroNodeLinkedList.delete(1);
        doubleHeroNodeLinkedList.list();
    }
}
